package com.gk.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: godkey
 * @Date: 2020/12/16 15:49
 */
@RestController
@RequestMapping("test")
public class TestController {

    @PreAuthorize("hasAuthority('sys:user:view')")
    @GetMapping(value = "/test1")
    public String test1(){
        return "调用test1接口";
    }
}
